package team.dmh.wx.service;

import team.dmh.wx.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import team.dmh.wx.vo.UserVO;

import java.io.IOException;
import java.security.NoSuchAlgorithmException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hzk
 * @since 2018-10-15
 */
public interface IUserService extends IService<User> {

    boolean queryIsExistByUsername(String username);

    User queryForLogin(String username, String password);

    UserVO register(User user) throws IOException, NoSuchAlgorithmException;
}
